package com.alinesno.cloud.base.logger.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;


/**
 * <p>
 * 系统访问
 * </p>
 *
 * @author WeiXiaoJin
 * @since 2020-01-26 09:30:11
 */
@Entity
@Table(name="log_request_url")
public class LogRequestUrlEntity extends BaseWatcherEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 用户ID
     */
	@Column(name="account_id")
	private String accountId;
    /**
     * 用户名
     */
	@Column(name="account_name")
	private String accountName;
    /**
     * 浏览器
     */
	private String agent;
    /**
     * IP
     */
	private String ip;
    /**
     * 登陆名
     */
	@Column(name="login_name")
	private String loginName;
    /**
     * 方法
     */
	private String method;
    /**
     * 方法描述
     */
	@Column(name="method_desc")
	private String methodDesc;
    /**
     * 方法执行时间
     */
	@Column(name="method_time")
	private Long methodTime;
    /**
     * 操作员
     */
	private String operation;
    /**
     * 参数
     */
	private String params;
    /**
     * 地址
     */
	private String url;
    /**
     * 日志类型
     */
	@Column(name="record_type")
	private String recordType;


	public String getAccountId() {
		return accountId;
	}

	public void setAccountId(String accountId) {
		this.accountId = accountId;
	}

	public String getAccountName() {
		return accountName;
	}

	public void setAccountName(String accountName) {
		this.accountName = accountName;
	}

	public String getAgent() {
		return agent;
	}

	public void setAgent(String agent) {
		this.agent = agent;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public String getLoginName() {
		return loginName;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}

	public String getMethod() {
		return method;
	}

	public void setMethod(String method) {
		this.method = method;
	}

	public String getMethodDesc() {
		return methodDesc;
	}

	public void setMethodDesc(String methodDesc) {
		this.methodDesc = methodDesc;
	}

	public Long getMethodTime() {
		return methodTime;
	}

	public void setMethodTime(Long methodTime) {
		this.methodTime = methodTime;
	}

	public String getOperation() {
		return operation;
	}

	public void setOperation(String operation) {
		this.operation = operation;
	}

	public String getParams() {
		return params;
	}

	public void setParams(String params) {
		this.params = params;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getRecordType() {
		return recordType;
	}

	public void setRecordType(String recordType) {
		this.recordType = recordType;
	}


	@Override
	public String toString() {
		return "LogRequestUrlEntity{" +
			"accountId=" + accountId +
			", accountName=" + accountName +
			", agent=" + agent +
			", ip=" + ip +
			", loginName=" + loginName +
			", method=" + method +
			", methodDesc=" + methodDesc +
			", methodTime=" + methodTime +
			", operation=" + operation +
			", params=" + params +
			", url=" + url +
			", recordType=" + recordType +
			"}";
	}
}
